export interface Menu {
    id:string
    key:string
    name:string
    type:string
    path:string
    children:Ch[]
}
export interface Ch{
    id:string
    key:string
    parentId:string
    name:string
    type:string
    path:string
}
const headerMenuSingle:Menu[] = [{
    id: '1',
    key: '1',
    name: '产品管理',
    type: 'product',
    path: '',
    children:[{
            id: '1-1',
            parentId: '1',
            key: '1-1',
            name: '商品列表',
            type: 'product',
            path: '/product-list',
        },
        {
            id: '1-2',
            key: '1-2',
            parentId: '1',
            name: '添加列表',
            type: 'product',
            path: '/product-add',
        }
    ]
},
{
    id: '2',
    key: '2',
    name: '商户管理',
    type: 'business',
    path: '',
    children: [{
            id: '2-1',
            key: '2-1',
            parentId: '2',
            name: '商户列表',
            type: 'business',
            path: '/business-list',
        },
        {
            id: '2-2',
            key: '2-2',
            parentId: '2',
            name: '商户分析',
            type: 'business',
            path: '/business-analysis',
        },
    ]
},
{
    id: '3',
    key: '3',
    name: '系统设置',
    type: 'user',
    path: '',
    children: [{
            id: '3-1',
            key: '3-1',
            parentId: '3',
            name: '用户管理',
            type: 'user',
            path: '/user-userInfo',
        },
        {
            id: '3-2',
            key: '3-2',
            parentId: '3',
            name: '权限管理',
            type: 'user',
            path: '/user-auth',
        }
    ]
},
{
    id: '4',
    key: '4',
    name: '测试',
    type: 'test',
    path: '/test',
    children:[]
}

]
const menu:Ch[] = [{
    id: '1',
    key: '1',
    parentId:"",
    name: '产品管理',
    type: 'product',
    path: '',
},
{
    id: '1-1',
    parentId: '1',
    key: '1-1',
    name: '商品列表',
    type: 'product',
    path: '/product-list',
},
{
    id: '1-2',
    key: '1-2',
    parentId: '1',
    name: '添加商品',
    type: 'product',
    path: '/product-add',
},
{
    id: '2',
    key: '2',
    parentId:'',
    name: '商户管理',
    type: 'business',
    path: '',
},
{
    id: '2-1',
    key: '2-1',
    parentId: '2',
    name: '商户列表',
    type: 'business',
    path: '/business-list',
},
{
    id: '2-2',
    key: '2-2',
    parentId: '2',
    name: '商户分析',
    type: 'business',
    path: '/business-analysis',
},
{
    id: '3',
    key: '3',
    parentId:'',
    name: '系统设置',
    type: 'user',
    path: '',
},
{
    id: '3-1',
    key: '3-1',
    parentId: '3',
    name: '用户管理',
    type: 'user',
    path: '/user-userInfo',
},
{
    id: '3-2',
    key: '3-2',
    parentId: '3',
    name: '权限管理',
    type: 'user',
    path: '/user-auth',
}

]
export{
headerMenuSingle,
menu
}